package com.zc.study.thread.多线程第三章节.thread3_1_13;

import java.io.PipedReader;

public class ThreadRead extends Thread{
    private ReadData readData;
    private PipedReader reader;

    public ThreadRead(ReadData readData, PipedReader reader) {
        this.readData = readData;
        this.reader = reader;
    }

    @Override
    public void run() {
        super.run();
        readData.readMethod(reader);
    }
}
